﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Xmpp: ChatScenarioTest.cs Source File</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Xmpp: ChatScenarioTest.cs Source File
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">ChatScenarioTest.cs</div>  </div>
</div>
<div class="contents">
<a href="_chat_scenario_test_8cs.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 ﻿namespace StateForge.Examples.XmppChat
<a name="l00002"></a>00002 {
<a name="l00003"></a>00003     <span class="keyword">using</span> System;
<a name="l00004"></a>00004     <span class="keyword">using</span> System.Threading;
<a name="l00005"></a>00005     <span class="keyword">using</span> NUnit.Framework;
<a name="l00006"></a>00006     <span class="keyword">using</span> StateForge.StateMachine;
<a name="l00007"></a>00007     <span class="keyword">using</span> System.Diagnostics;
<a name="l00008"></a>00008     <span class="keyword">using</span> System.Configuration;
<a name="l00009"></a>00009 
<a name="l00010"></a>00010     [TestFixture]
<a name="l00011"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html">00011</a>     <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html">ChatScenarioTest</a>
<a name="l00012"></a>00012     {
<a name="l00013"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6134cc4a314fbe4d2a20db8090b32b9d">00013</a>         <span class="keyword">static</span> AutoResetEvent autoResetEvent = <span class="keyword">new</span> AutoResetEvent(<span class="keyword">false</span>);
<a name="l00014"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af3f5922f5d2adeda1756ccddbf8d35ad">00014</a>         <span class="keyword">private</span> <span class="keyword">static</span> readonly <span class="keywordtype">string</span> traceName = <span class="stringliteral">&quot;Client&quot;</span>;
<a name="l00015"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a4244ee948d5db0c60e7cd58880578bcb">00015</a>         <span class="keyword">private</span> <span class="keyword">static</span> TraceSource ts = <span class="keyword">new</span> TraceSource(traceName);
<a name="l00016"></a>00016 
<a name="l00017"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">00017</a>         <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a> alice, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>;
<a name="l00018"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">00018</a>         <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html">ChatScenario</a> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>;
<a name="l00019"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">00019</a>         <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_xmpp_db.html">XmppDb</a> Db {<span class="keyword">get</span>; <span class="keyword">set</span>;}
<a name="l00020"></a>00020         
<a name="l00021"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#aa6070238faf8bc0b531170d0ad0db8f3">00021</a>         <span class="keywordtype">string</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#aa6070238faf8bc0b531170d0ad0db8f3">server</a>;
<a name="l00022"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac2504098d34f400d2b8595f74e1d96aa">00022</a>         <span class="keywordtype">string</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac2504098d34f400d2b8595f74e1d96aa">dbConnectionString</a>;
<a name="l00023"></a>00023 
<a name="l00024"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a4283244edfdb32332306ca4db2f34fff">00024</a>         <span class="keywordtype">string</span> username1 = <span class="stringliteral">&quot;stateforge1&quot;</span>;
<a name="l00025"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a160af876623f270df165374b80318aa3">00025</a>         <span class="keywordtype">string</span> password1 = <span class="stringliteral">&quot;stateforge1&quot;</span>;
<a name="l00026"></a>00026 
<a name="l00027"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac8d9c4781f3bf9f36b916a313be3d3cd">00027</a>         <span class="keywordtype">string</span> username2 = <span class="stringliteral">&quot;stateforge2&quot;</span>;
<a name="l00028"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6fee9f9418c890dff354e36e893a5c72">00028</a>         <span class="keywordtype">string</span> password2 = <span class="stringliteral">&quot;stateforge2&quot;</span>;
<a name="l00029"></a>00029 
<a name="l00030"></a>00030         [TestFixtureSetUp]
<a name="l00031"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a052bab6fddc5ae15535e5561499e5a4b">00031</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestFixtureSetup()
<a name="l00032"></a>00032         {
<a name="l00033"></a>00033             this.server = System.Configuration.ConfigurationManager.AppSettings[<span class="stringliteral">&quot;Server&quot;</span>];
<a name="l00034"></a>00034             this.dbConnectionString = System.Configuration.ConfigurationManager.AppSettings[<span class="stringliteral">&quot;DbConnectionString&quot;</span>];
<a name="l00035"></a>00035 
<a name="l00036"></a>00036             this.Db = <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_xmpp_db.html">XmppDb</a>(this.dbConnectionString);
<a name="l00037"></a>00037             this.Db.Open();
<a name="l00038"></a>00038         }
<a name="l00039"></a>00039 
<a name="l00040"></a>00040         [TestFixtureTearDown]
<a name="l00041"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a8513b31f367a541c7e82a78182ca9983">00041</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestFixtureTearDown()
<a name="l00042"></a>00042         {
<a name="l00043"></a>00043             this.Db.Close();
<a name="l00044"></a>00044         }
<a name="l00045"></a>00045 
<a name="l00046"></a>00046         [SetUp]
<a name="l00047"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">00047</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> SetUp()
<a name="l00048"></a>00048         {
<a name="l00049"></a>00049             this.chatScenario = <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html">ChatScenario</a>();
<a name="l00050"></a>00050             this.alice = this.chatScenario.CreateClient(username1, password1, server);
<a name="l00051"></a>00051             this.bob = this.chatScenario.CreateClient(username2, password2, server);
<a name="l00052"></a>00052         }
<a name="l00053"></a>00053 
<a name="l00054"></a>00054         [TearDown]
<a name="l00055"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a273b9c029b3ecbf341da12784fc9a2f3">00055</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TearDown()
<a name="l00056"></a>00056         {
<a name="l00057"></a>00057             
<a name="l00058"></a>00058         }
<a name="l00059"></a>00059 
<a name="l00060"></a>00060         [Test]
<a name="l00061"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a596aa4b3439f41503cacae32b2c443f2">00061</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestRegisterNewAccount()
<a name="l00062"></a>00062         {
<a name="l00063"></a>00063             this.Db.UserRemove(alice.Jid.User);
<a name="l00064"></a>00064             var context = <span class="keyword">new</span> TestRegisterNewAccountContext(this.chatScenario, this.alice, this.bob);
<a name="l00065"></a>00065             InitializeContext(context);
<a name="l00066"></a>00066             Start(context);
<a name="l00067"></a>00067         }
<a name="l00068"></a>00068 
<a name="l00069"></a>00069         [Test]
<a name="l00070"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a1f83c591c7b9dbaa4f732bf8b0b2a518">00070</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestScenarioLogin()
<a name="l00071"></a>00071         {
<a name="l00072"></a>00072             this.Db.UserAdd(alice.Jid.User, password1);
<a name="l00073"></a>00073             var context = <span class="keyword">new</span> TestLoginContext(this.chatScenario, this.alice, this.bob);
<a name="l00074"></a>00074             InitializeContext(context);
<a name="l00075"></a>00075             Start(context);
<a name="l00076"></a>00076         }
<a name="l00077"></a>00077 
<a name="l00078"></a>00078         [Test]
<a name="l00079"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a594a1ba1723cbd75826081a397ed8d09">00079</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestScenarioLogin02()
<a name="l00080"></a>00080         {
<a name="l00081"></a>00081             this.Db.UserAdd(alice.Jid.User, password1);
<a name="l00082"></a>00082             this.Db.UserAdd(bob.Jid.User, password2);
<a name="l00083"></a>00083             var context = <span class="keyword">new</span> TestLogin02Context(this.chatScenario, this.alice, this.bob);
<a name="l00084"></a>00084             InitializeContext(context);
<a name="l00085"></a>00085             Start(context);
<a name="l00086"></a>00086         }
<a name="l00087"></a>00087 
<a name="l00088"></a>00088         [Test]
<a name="l00089"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af07b23d71695af31d7e47a9e75f7f4c7">00089</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestOpenClose01()
<a name="l00090"></a>00090         {
<a name="l00091"></a>00091             var context = <span class="keyword">new</span> TestOpenClose01Context(this.chatScenario, this.alice, this.bob);
<a name="l00092"></a>00092             InitializeContext(context);
<a name="l00093"></a>00093             Start(context);
<a name="l00094"></a>00094         }
<a name="l00095"></a>00095 
<a name="l00096"></a>00096         [Test]
<a name="l00097"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abce2b7a02d1eb541a207539f5b2b72b3">00097</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestOpenClose02()
<a name="l00098"></a>00098         {
<a name="l00099"></a>00099             var context = <span class="keyword">new</span> TestOpenClose02Context(this.chatScenario, this.alice, this.bob);
<a name="l00100"></a>00100             InitializeContext(context);
<a name="l00101"></a>00101             Start(context);
<a name="l00102"></a>00102         }
<a name="l00103"></a>00103 
<a name="l00104"></a>00104         [Test]
<a name="l00105"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#acb1e7b65d6d1198679cd624046e96d92">00105</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestScenarioUnSubscribe()
<a name="l00106"></a>00106         {
<a name="l00107"></a>00107             var context = <span class="keyword">new</span> TestUnSubscribeContext(this.chatScenario, this.alice, this.bob);
<a name="l00108"></a>00108             InitializeContext(context);
<a name="l00109"></a>00109             Start(context);
<a name="l00110"></a>00110         }
<a name="l00111"></a>00111 
<a name="l00112"></a>00112         [Test]
<a name="l00113"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ad2d66e77beb61dca4297b5547bd25759">00113</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestRosterAddRemove()
<a name="l00114"></a>00114         {
<a name="l00115"></a>00115             var context = <span class="keyword">new</span> TestRosterAddRemoveContext(this.chatScenario, this.alice, this.bob);
<a name="l00116"></a>00116             InitializeContext(context);
<a name="l00117"></a>00117             Start(context);
<a name="l00118"></a>00118         }
<a name="l00119"></a>00119 
<a name="l00120"></a>00120         [Test]
<a name="l00121"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a704dde629a5d61f5f19755bc2cc158b0">00121</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestRosterAdd()
<a name="l00122"></a>00122         {
<a name="l00123"></a>00123             var context = <span class="keyword">new</span> TestRosterAddContext(this.chatScenario, this.alice, this.bob);
<a name="l00124"></a>00124             InitializeContext(context);
<a name="l00125"></a>00125             Start(context);
<a name="l00126"></a>00126         }
<a name="l00127"></a>00127 
<a name="l00128"></a>00128         [Test]
<a name="l00129"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ae1d55a6e9e2053b7b84839416728e997">00129</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestSubscription01()
<a name="l00130"></a>00130         {
<a name="l00131"></a>00131             var context = <span class="keyword">new</span> TestSubscription01Context(this.chatScenario, this.alice, this.bob);
<a name="l00132"></a>00132             InitializeContext(context);
<a name="l00133"></a>00133             Start(context);
<a name="l00134"></a>00134         }
<a name="l00135"></a>00135 
<a name="l00136"></a>00136         [Test]
<a name="l00137"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a8a1b5785e3eb27f67402bcff06d19299">00137</a>         <span class="keyword">public</span> <span class="keywordtype">void</span> TestChat01()
<a name="l00138"></a>00138         {
<a name="l00139"></a>00139             var context = <span class="keyword">new</span> TestChat01Context(this.chatScenario, this.alice, this.bob);
<a name="l00140"></a>00140             InitializeContext(context);
<a name="l00141"></a>00141             Start(context);
<a name="l00142"></a>00142         }
<a name="l00143"></a>00143 
<a name="l00144"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">00144</a>         <span class="keyword">private</span> <span class="keywordtype">void</span> Start(<a class="code" href="interface_state_forge_1_1_examples_1_1_xmpp_chat_1_1_i_chat_scenario.html">IChatScenario</a> context)
<a name="l00145"></a>00145         {
<a name="l00146"></a>00146             this.chatScenario.Context = context;
<a name="l00147"></a>00147             this.chatScenario.<a class="code" href="interface_state_forge_1_1_examples_1_1_xmpp_chat_1_1_i_chat_scenario.html#abf9dbc394fbe27bd5463edd8946dbc25">Start</a>();
<a name="l00148"></a>00148             autoResetEvent.WaitOne();
<a name="l00149"></a>00149             Assert.IsFalse(this.chatScenario.HasError());
<a name="l00150"></a>00150         }
<a name="l00151"></a>00151 
<a name="l00152"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a5186fddb66245d8b90910927ecb95435">00152</a>         <span class="keyword">static</span> <span class="keyword">private</span> <span class="keywordtype">void</span> End(<span class="keywordtype">object</span> sender, EventArgs e)
<a name="l00153"></a>00153         {
<a name="l00154"></a>00154             autoResetEvent.Set();
<a name="l00155"></a>00155         }
<a name="l00156"></a>00156 
<a name="l00157"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">00157</a>         <span class="keyword">private</span> <span class="keywordtype">void</span> InitializeContext(ContextBase context)
<a name="l00158"></a>00158         {
<a name="l00159"></a>00159             context.Observer = ObserverTrace.Instance(traceName);
<a name="l00160"></a>00160             context.RegisterEndHandler(<span class="keyword">new</span> EventHandler&lt;EventArgs&gt;(End));
<a name="l00161"></a>00161             context.EnterInitialState();
<a name="l00162"></a>00162         }
<a name="l00163"></a>00163 
<a name="l00164"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab10707cbc89fdd7f95541bba46dff72d">00164</a>         <span class="keyword">public</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html">ChatScenarioTest</a>()
<a name="l00165"></a>00165         {
<a name="l00166"></a>00166         }
<a name="l00167"></a>00167 
<a name="l00171"></a>00171         [STAThread]
<a name="l00172"></a><a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a5b28a8fcee3271a06075605abfc611c3">00172</a>         <span class="keyword">static</span> <span class="keywordtype">void</span> Main()
<a name="l00173"></a>00173         {
<a name="l00174"></a>00174             <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html">ChatScenarioTest</a> chatScenarioTest = <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html">ChatScenarioTest</a>();
<a name="l00175"></a>00175             chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a052bab6fddc5ae15535e5561499e5a4b">TestFixtureSetup</a>();
<a name="l00176"></a>00176             <span class="keywordtype">int</span> numTest = 2;
<a name="l00177"></a>00177 
<a name="l00178"></a>00178             <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 1; i &lt;= numTest; i++)
<a name="l00179"></a>00179             {
<a name="l00180"></a>00180                 Console.WriteLine(<span class="stringliteral">&quot;Session number &quot;</span> + i);
<a name="l00181"></a>00181 
<a name="l00182"></a>00182                 Console.WriteLine(<span class="stringliteral">&quot;\tTestRegisterNewAccount&quot;</span>);
<a name="l00183"></a>00183                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00184"></a>00184                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a596aa4b3439f41503cacae32b2c443f2">TestRegisterNewAccount</a>();
<a name="l00185"></a>00185 
<a name="l00186"></a>00186                 Console.WriteLine(<span class="stringliteral">&quot;\tTestScenarioLogin&quot;</span>);
<a name="l00187"></a>00187                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00188"></a>00188                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a1f83c591c7b9dbaa4f732bf8b0b2a518">TestScenarioLogin</a>();
<a name="l00189"></a>00189 
<a name="l00190"></a>00190                 Console.WriteLine(<span class="stringliteral">&quot;\tTestScenarioLogin02&quot;</span>);
<a name="l00191"></a>00191                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00192"></a>00192                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a594a1ba1723cbd75826081a397ed8d09">TestScenarioLogin02</a>();
<a name="l00193"></a>00193 
<a name="l00194"></a>00194                 Console.WriteLine(<span class="stringliteral">&quot;\tTestOpenClose01&quot;</span>);
<a name="l00195"></a>00195                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00196"></a>00196                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af07b23d71695af31d7e47a9e75f7f4c7">TestOpenClose01</a>();
<a name="l00197"></a>00197 
<a name="l00198"></a>00198                 Console.WriteLine(<span class="stringliteral">&quot;\tTestOpenClose02&quot;</span>);
<a name="l00199"></a>00199                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00200"></a>00200                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abce2b7a02d1eb541a207539f5b2b72b3">TestOpenClose02</a>();
<a name="l00201"></a>00201 
<a name="l00202"></a>00202                 Console.WriteLine(<span class="stringliteral">&quot;\tTestRosterAddRemove&quot;</span>);
<a name="l00203"></a>00203                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00204"></a>00204                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ad2d66e77beb61dca4297b5547bd25759">TestRosterAddRemove</a>();
<a name="l00205"></a>00205 
<a name="l00206"></a>00206                 Console.WriteLine(<span class="stringliteral">&quot;\tTestRosterAdd&quot;</span>);
<a name="l00207"></a>00207                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00208"></a>00208                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a704dde629a5d61f5f19755bc2cc158b0">TestRosterAdd</a>();
<a name="l00209"></a>00209 
<a name="l00210"></a>00210                 Console.WriteLine(<span class="stringliteral">&quot;\tTestSubscription01&quot;</span>);
<a name="l00211"></a>00211                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00212"></a>00212                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ae1d55a6e9e2053b7b84839416728e997">TestSubscription01</a>();
<a name="l00213"></a>00213 
<a name="l00214"></a>00214                 Console.WriteLine(<span class="stringliteral">&quot;\tTestChat01&quot;</span>);
<a name="l00215"></a>00215                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00216"></a>00216                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a8a1b5785e3eb27f67402bcff06d19299">TestChat01</a>();
<a name="l00217"></a>00217 
<a name="l00218"></a>00218                 Console.WriteLine(<span class="stringliteral">&quot;\tTestScenarioUnSubscribe&quot;</span>);
<a name="l00219"></a>00219                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a>();
<a name="l00220"></a>00220                 chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#acb1e7b65d6d1198679cd624046e96d92">TestScenarioUnSubscribe</a>();
<a name="l00221"></a>00221             }
<a name="l00222"></a>00222 
<a name="l00223"></a>00223             chatScenarioTest.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a8513b31f367a541c7e82a78182ca9983">TestFixtureTearDown</a>();
<a name="l00224"></a>00224 
<a name="l00225"></a>00225             Environment.Exit(0);
<a name="l00226"></a>00226         }
<a name="l00227"></a>00227     }
<a name="l00228"></a>00228 }
</pre></div></div>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
